<?php
/**
 * The template for displaying Comments.
 *
 * The area of the page that contains both current comments
 * and the comment form. The actual display of comments is
 * handled by a callback to twentytwelve_comment() which is
 * located in the functions.php file.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */

/*
 * If the current post is protected by a password and
 * the visitor has not yet entered the password we will
 * return early without loading the comments.
 */
if ( post_password_required() )
	return;
?>

<div id="comments" class="comments-area">
	<div class='shareaholic-canvas' data-app='share_buttons' data-app-id='406238' style="margin-left:-60px;"></div>

	<?php if ( have_comments() ) : ?>

		<ol class="commentlist">
        	<?php
			$comments = get_comments(array("post_id"=>$post->ID));
			foreach($comments as $comment){
			?>
            <h2><?php echo $comment->comment_author;?> <span><?php echo $comment->comment_date;?></span></h2>
            <div style="clear:both;"></div>
            <p>
	            <?php echo $comment->comment_content;?>
			</p>
            <?php
			}
			?>
		</ol><!-- .commentlist -->


	<?php endif; // have_comments() ?>

	<?php 
	$args=array(
				"label_submit"=>"Enviar",
				"comment_notes_after"=>"",
				"comment_notes_before"=>"<span>Tu email nunca será publicado o compartido. Los campos obligatorios están marcados *</span><br />"
				);
	comment_form($args);
	?>

</div><!-- #comments .comments-area -->